package com.sayice.design.lab7_1;

import com.sayice.design.lab7_1.observer.Observer;

/**
 * @author shubing
 */
public class EditBox extends AbstractEditBox {
    @Override
    public void edit(String text) {
        System.out.println("edit: " + text);
        this.text = text;
        observers.forEach(Observer::show);
    }
}
